package com.violet.detective.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.violet.detective.entity.Repair;
import com.baomidou.mybatisplus.extension.service.IService;
import com.violet.detective.search.RepairSearchParameter;

import java.util.List;

/**
* @author 21145
* @description 针对表【Repair】的数据库操作Service
* @createDate 2023-09-04 21:42:38
*/
public interface RepairService extends IService<Repair> {
    boolean addRepair(Repair repair);
    boolean editRepair(Repair updatedRepair);
    boolean deleteRepair(Integer id);
    Repair getRepairById(Integer id);
//    List<Repair> findByEquipmentId(int equipmentId);
//    List<Repair> findByEquipmentName(String equipmentName);
//    List<Repair> findByType(String type);
//    List<Repair> findByLubricationPart(String lubricationPart);
//    List<Repair> findByOilSupplyType(String oilType);
//    List<Repair> findByLubricationMethod(String lubricationMethod);
    List<Repair> searchRepairs(RepairSearchParameter searchParameter);
    Page<Repair> searchRepairs(RepairSearchParameter searchParameter, int pageNum, int pageSize);
    List<Repair> findAllRepairs();
    Page<Repair> findAllRepairs(int pageNum, int pageSize);
}
